package com.wanmait.happyheating.mapper;

import com.wanmait.happyheating.pojo.Ordersinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.core.annotation.Order;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 订单详情表 Mapper 接口
 * </p>
 *
 * @author yuQianTao
 * @since 2021-05-13
 */
public interface OrdersinfoMapper extends BaseMapper<Ordersinfo> {
    List<Ordersinfo> findUserinfoAll();
    Ordersinfo findById(Integer id);
    void save(Ordersinfo ordersinfo);
    List<Ordersinfo>finndWorksById(Integer id);
    void updateStateId(Ordersinfo ordersinfo);
    Ordersinfo findFirstOrderByEmptyWorker(Integer userinfoID);
    List<Ordersinfo>finndWorksByIdByOrdersinfoId(Integer id,Integer stateId);
    List<Ordersinfo>hang(Integer id,Integer stateId);
}
